#include <bsp.h>
#include <nkintr.h>
#include "himemmap.h"

const DWORD g_dwTimesPerCs = 3;

const DWORD g_dwLdiDiv = 0xB;

static UINT16 powerOnData1[] = { 0x74, 0x00,0x07, 0x76, 0x00,0x00,
                       			 0x74, 0x00,0x13, 0x76, 0x00,0x00 };
//wait 10ms
static UINT16 powerOnData2[] = { 0x74, 0x00,0x11, 0x76, 0x30,0x04,
								 0x74, 0x00,0x14, 0x76, 0x20,0x0f,
								 0x74, 0x00,0x10, 0x76, 0x1a,0x20,
								 0x74, 0x00,0x13, 0x76, 0x00,0x40 };
//wait 50ms
static UINT16 powerOnData3[] = { 0x74, 0x00,0x13, 0x76, 0x00,0x60,
                        		 0x74, 0x00,0x13, 0x76, 0x00,0x70 };
//wait 200ms    
static UINT16 powerOnData4[] = { 0x74, 0x00,0x01, 0x76, 0x11,0x27,
				                 0x74, 0x00,0x02, 0x76, 0x07,0x00,
				                 0x74, 0x00,0x03, 0x76, 0x10,0x30,
				                 0x74, 0x00,0x08, 0x76, 0x08,0x08,
				                 0x74, 0x00,0x0b, 0x76, 0x06,0x20,
				                 0x74, 0x00,0x0c, 0x76, 0x01,0x10,
				                 0x74, 0x00,0x30, 0x76, 0x01,0x20,
				                 0x74, 0x00,0x31, 0x76, 0x01,0x27,
				                 0x74, 0x00,0x32, 0x76, 0x00,0x00,
				                 0x74, 0x00,0x33, 0x76, 0x05,0x03,
				                 0x74, 0x00,0x34, 0x76, 0x07,0x27,
				                 0x74, 0x00,0x35, 0x76, 0x01,0x24,
				                 0x74, 0x00,0x36, 0x76, 0x07,0x06,
				                 0x74, 0x00,0x37, 0x76, 0x07,0x01,
				                 0x74, 0x00,0x38, 0x76, 0x0f,0x00,
				                 0x74, 0x00,0x39, 0x76, 0x0f,0x00,
				                 0x74, 0x00,0x40, 0x76, 0x00,0x00,
				                 0x74, 0x00,0x41, 0x76, 0x00,0x00,
				                 0x74, 0x00,0x42, 0x76, 0x01,0x3f,
				                 0x74, 0x00,0x43, 0x76, 0x00,0x00,
				                 0x74, 0x00,0x44, 0x76, 0x01,0x3f,
				                 0x74, 0x00,0x45, 0x76, 0x00,0x00,
				                 0x74, 0x00,0x46, 0x76, 0xef,0x00,
				                 0x74, 0x00,0x47, 0x76, 0x01,0x3f,
				                 0x74, 0x00,0x48, 0x76, 0x00,0x00,
				                 0x74, 0x00,0x07, 0x76, 0x00,0x15 };
//wait 30ms
static UINT16 powerOnData5[] = { 0x74, 0x00,0x07, 0x76, 0x00,0x17};
    

static UINT16 powerOnData6[] = { 0x74, 0x00,0x20, 0x76, 0x00,0x00,
								 0x74, 0x00,0x21, 0x76, 0x00,0x00,
								 0x74, 0x00,0x22, 0x76, 0x00,0x00 };